<?php
/**
 * @link https://www.kancloud.cn/cleverstone/ymb2
 * @copyright Copyright (c) 2020 Yii Manager Software LLC
 */

namespace builder\table\util;

use builder\table\HelperInterface;
use builder\table\util\tditems\Ajax;
use builder\table\util\tditems\Modal;
use builder\table\util\tditems\Page;

/**
 * 工具栏下拉菜单项构建助手
 *
 * @author clevstn
 * @since ym2.0
 */
class ToolbarDropdownItemHelper implements HelperInterface
{
    /**
     * @param string $modalTitle 模态框标题
     * @return Modal
     */
    public function modal($modalTitle = '')
    {
        return new Modal($modalTitle);
    }

    /**
     * @return Page
     */
    public function page()
    {
        return new Page();
    }

    /**
     * @return Ajax
     */
    public function ajax()
    {
        return new Ajax();
    }
}